using System;
using System.Data;
using System.Linq;
using System.ComponentModel;
using System.Reflection;
using System.Collections.Generic;
using DataObject.Model;
using DataObject.Database;

	public partial class StickyMapper
	{
		#region ToEntity

		public static StickyEntity ToEntity(StickyEntity entity, StickyDTO businessobject)
		{
			if (businessobject == null)
			{
				return null;
			}
			entity.Description = businessobject.Description;
			entity.StickyDate = businessobject.StickyDate;
			entity.StickyID = businessobject.StickyID;
			return entity;
		}

		#endregion

		#region ToBusinessObject

		public static StickyDTO ToBusinessObject(StickyEntity entity)
		{
			if (entity == null)
			{
				return null;
			}
			return new StickyDTO
			{
				Description = entity.Description,
				StickyDate = entity.StickyDate,
				StickyID = entity.StickyID
			};
		}

		#endregion

		#region ToBusinessObjectHasChildren

		public static StickyDTO ToBusinessObjectHasChildren(StickyEntity entity, params Type[] types)
		{
			if (entity == null)
			{
				return null;
			}
			StickyDTO businessobject = new StickyDTO
			{
				Description = entity.Description,
				StickyDate = entity.StickyDate,
				StickyID = entity.StickyID
			};
			return businessobject;
		}

		#endregion

	}
